package com.ruoyi.zlkc.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 智领康程用户对象 zlkc_user
 * 
 * @author ruoyi
 * @date 2024-12-04
 */
public class ZlkcUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long userId;

    /** 账号 */
    @Excel(name = "账号")
    private String userName;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 性别（0:男性 1:女性） */
    @Excel(name = "性别", readConverterExp = "0=:男性,1=:女性")
    private Long sex;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 住址 */
    @Excel(name = "住址")
    private String address;

    /** 职业 */
    @Excel(name = "职业")
    private String career;

    /** 用户类型（0:社区医生 1:普通用户 2:观察患者） */
    @Excel(name = "用户类型", readConverterExp = "0=:社区医生,1=:普通用户,2=:观察患者")
    private Long userType;

    /** 状态（0:禁用 1:启用） */
    @Excel(name = "状态", readConverterExp = "0=:禁用,1=:启用")
    private Long status;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setCareer(String career) 
    {
        this.career = career;
    }

    public String getCareer() 
    {
        return career;
    }
    public void setUserType(Long userType) 
    {
        this.userType = userType;
    }

    public Long getUserType() 
    {
        return userType;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("name", getName())
            .append("password", getPassword())
            .append("sex", getSex())
            .append("idCard", getIdCard())
            .append("birthday", getBirthday())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("career", getCareer())
            .append("userType", getUserType())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
